// 盲人端接口
import {$http} from "@/utils/request/requestConfig.js"

const api = {
	 "volunteersList":"api/travel/disabled/volunteer/list",
	 "make":"api/travel/disabled/create",
	 "requestRouteList":"api/travel/disabled/route/list",
	 "requestVolunteer":"api/travel/disabled/apply",
	 "conditionalVolunteersList":"api/travel/disabled/apply/list",
	 "cancelRequestVolunteer":"api/travel/disabled/apply/cancel",
	 "cancelRequestRoute":"api/travel/disabled/travel/cancel"
	 
	
}

export const volunteersList = (data) => {
	return $http.get(api.volunteersList,data)
}

export const makeTravel = (data) => {
	return $http.post(api.make,data)
}

export const requestRoutes = () => {
	return $http.get(api.requestRouteList)
}

export const requestVolunteer = (data) => {
	return $http.get(api.requestVolunteer,data)
}

export const cancelRequestVolunteer = (data) => {
	return $http.post(api.cancelRequestVolunteer,data)
}

export const cancelRequestRoute = (data) =>{
	return $http.post(api.cancelRequestRoute,data)
}

export const conditionalVolunteersList = (data) => {
	return $http.get(api.conditionalVolunteersList,data)
}

